#include "low_energy.h"
#include "driver/adc.h"
#include "driver/ledc.h"
#include "driver/timer.h"
#include "driver/touch_sensor.h"
#include "driver/rmt.h"
#include "driver/sdmmc_host.h"
#include "driver/sdspi_host.h"
#include "driver/i2s.h"
#include "driver/uart.h"
#include "driver/spi_master.h"
#include "driver/can.h"
#include "driver/dac.h"
#include "driver/pcnt.h"
#include "driver/sigmadelta.h"
#include "esp_wifi.h"

/**
 * @brief 禁用所有未使用的外设
 */
void disableAllUnusedPeripherals(void) {
  // 关闭触摸传感器
  touch_pad_deinit();
  
  // 关闭SDMMC/SDSPI
  sdmmc_host_deinit();
  sdspi_host_deinit();

  esp_wifi_stop();
  esp_wifi_deinit();
}


